]> git.r.bdr.sh - rbdr/super-polarity/blobdiff - Super Polarity/Actors/Bullet.cs
Removes old stuff, adds mac proj
[rbdr/super-polarity] / Super Polarity / Actors / Bullet.cs
index 5a7be03906268e4d677d31b5272440e6223c5a1d..d20289cd536aa832ac8a1e7d5ff2764877474c87 100644 (file)
@@ -29,6 +29,7 @@ namespace SuperPolarity
             BoxDimensions.Y = 10;
             BoxDimensions.W = 10;
             BoxDimensions.Z = 10;
+            MaxVelocity = 8;
             InitBox();
             particleEngine = ParticleEffectFactory.CreateBullet(position);
         }
@@ -66,7 +67,14 @@ namespace SuperPolarity
         protected override void Die()
         {
             ActorManager.CheckOut(this);
+            Renderer.CheckOut(this);
             Parent.Children.Remove(this);
         }
+
+        public override void CleanUp()
+        {
+            base.CleanUp();
+            this.particleEngine = null;
+        }
     }
 }